package com.fast.user.persistence;

import com.fast.user.domain.User;
import com.wmm.common.annotations.MybatisRepository;
import com.wmm.common.persistence.CrudMapper;
import org.apache.ibatis.annotations.Param;

@MybatisRepository
public interface UserMapper extends CrudMapper<User> {

    int consumeBalance(@Param("userId") Long id,@Param("amount") Long amount);
}
